package com.hnhuas.salary.modules.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hnhuas.salary.common.utils.PageUtils;
import com.hnhuas.salary.common.utils.Query;
import com.hnhuas.salary.modules.admin.dao.SalaryTitleTypeDao;
import com.hnhuas.salary.modules.admin.dao.SalaryUserDao;
import com.hnhuas.salary.modules.admin.entity.SalaryTitleTypeEntity;
import com.hnhuas.salary.modules.admin.entity.SalaryUserEntity;
import com.hnhuas.salary.modules.admin.service.SalaryTitleTypeService;
import com.hnhuas.salary.modules.admin.service.SalaryUserService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

@Service("salaryTitleTypeService")
public class SalaryTitleTypeServiceImpl extends ServiceImpl<SalaryTitleTypeDao, SalaryTitleTypeEntity> implements SalaryTitleTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SalaryTitleTypeEntity> page = this.page(
                new Query<SalaryTitleTypeEntity>().getPage(params),
                new QueryWrapper<SalaryTitleTypeEntity>()
        );

        return new PageUtils(page);
    }
}
